﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebSEClassLibrary
{
    public class ChoiceDialog:Dialog
    {
        /// <summary>
        /// 选项的集合
        /// </summary>
        private Dictionary<int, Choice> dictionaryChoice;

        public Dictionary<int, Choice> DictionaryChoice
        {
            get { return dictionaryChoice; }
            set { dictionaryChoice = value; }
        }

        public ChoiceDialog(int id)
            : base(id)
        {
            //从XML中读取有关于该Dialog的Choice的信息,并构成dictionaryChoice
        }
        /// <summary>
        /// 实现基类的虚函数,获取下一个对话
        /// </summary>
        /// <param name="choiceId">选择项ID</param>
        /// <returns>下一个对话</returns>
        public override Dialog getNextDialog(int choiceId)
        {
            return (this.dictionaryChoice[choiceId]).getNextDialog();
        } 
    }
}
